package com.piece.module.spider.config;

import com.piece.module.spider.executor.Spider;
import com.piece.module.spider.websocket.SpiderWebSocketEditorServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import javax.annotation.Resource;

@Configuration
public class SpiderAutoConfig {

    @Resource
    private Spider spider;

    @Autowired
    public void setSpider() {
        SpiderWebSocketEditorServer.spider = spider;
    }
}
